<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%@ page import="com.google.appengine.api.users.User"%>
<%@ page import="com.google.appengine.api.users.UserService"%>
<%@ page import="com.google.appengine.api.users.UserServiceFactory"%>
<%@ page import="twitter4j.Twitter"%>
<%@ page import="twitter4j.TwitterFactory"%>
<%@ page import="twitter4j.ResponseList"%>
<%@ page import="twitter4j.Status"%>
<%@ page import="java.text.DateFormat"%>
<%@ page import="java.text.SimpleDateFormat"%>
<%@ page import="java.util.TimeZone"%>

<%
	UserService userService = UserServiceFactory.getUserService();
	User user = userService.getCurrentUser();
%>
<html>
  <head>
  	<title>My Tweet Diary</title>
    <link type="text/css" rel="stylesheet" href="/stylesheets/main.css" />
  </head>
<body>
<div class="body_wrapper">
	<div class="header">
	<%	if (user!=null) {%>
		<div class="user"> Hello, <%=user.getNickname()%>! </div>
		<div class="config"> 
			<a href="config.jsp">Config</a> 
		</div>
	<% 	} %>
	</div>
	
	<div class="contents">
		<%@include file="config_form.jsp" %>
	</div>

</div>
</body>
</html>
